import Vue from 'vue'
import App from './App'
import { all } from 'vue-client'

all()
require('./bootstrap/less/bootstrap.less')


// 登录界面
Vue.component('login', (resolve) => { require(['./components/server/Login'], resolve) })
// 返回
Vue.component('top', (resolve) => { require(['./components/server/Top'], resolve) })
//  首页
Vue.component('home', (resolve) => { require(['./components/server/Home'], resolve) })

Vue.component('home-page', (resolve) => { require(['./components/server/NavBottom'], resolve) })
// 计划上传
Vue.component('plan-update', (resolve) => { require(['./components/readingmeter/PlanUpdate'], resolve) })
// 计划下载
Vue.component('plan-down', (resolve) => { require(['./components/readingmeter/PlanDown'], resolve) })
// 抄表管理
Vue.component('read-meter', (resolve) => { require(['./components/readingmeter/ReadMeterCenter'], resolve) })
// 抄表历史信息
Vue.component('read-meter-info', (resolve) => { require(['./components/readingmeter/ReadMeterInfo'], resolve) })
// 已抄表抄表记录
Vue.component('finish-hand-info', (resolve) => { require(['./components/readingmeter/FinishHandInfo'], resolve) })

//  抄表单信息
Vue.component('hand-info', (resolve) => { require(['./components/readingmeter/HandInfo'], resolve) })
// 单户抄表(在产品的client 中)
Vue.component('phone-hand', (resolve) => { require(['../../../../client/src/components/revenue/HandManager/PhoneHand'], resolve) })

/* eslint-disable no-new */

Vue.interval = 1*60*1000
Vue.nopic = 'file:///android_asset/nopic.png'
Vue.mapSetup = false
new Vue({
  el: 'body',
  components: { App }
})
